package com.sjy.project.ent.yearSta.service.impl;

import java.util.List;
import com.sjy.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sjy.project.ent.yearSta.mapper.EntAppealLandDataMapper;
import com.sjy.project.ent.yearSta.domain.EntAppealLandData;
import com.sjy.project.ent.yearSta.service.IEntAppealLandDataService;
import com.sjy.common.utils.text.Convert;

/**
 * 申诉记录-自有产权信息Service业务层处理
 * 
 * @author ljb
 * @date 2022-07-09
 */
@Service
public class EntAppealLandDataServiceImpl implements IEntAppealLandDataService 
{
    @Autowired
    private EntAppealLandDataMapper entAppealLandDataMapper;

    /**
     * 查询申诉记录-自有产权信息
     * 
     * @param id 申诉记录-自有产权信息主键
     * @return 申诉记录-自有产权信息
     */
    @Override
    public EntAppealLandData selectEntAppealLandDataById(Long id)
    {
        return entAppealLandDataMapper.selectEntAppealLandDataById(id);
    }

    /**
     * 查询申诉记录-自有产权信息列表
     * 
     * @param entAppealLandData 申诉记录-自有产权信息
     * @return 申诉记录-自有产权信息
     */
    @Override
    public List<EntAppealLandData> selectEntAppealLandDataList(EntAppealLandData entAppealLandData)
    {
        return entAppealLandDataMapper.selectEntAppealLandDataList(entAppealLandData);
    }

    /**
     * 新增申诉记录-自有产权信息
     * 
     * @param entAppealLandData 申诉记录-自有产权信息
     * @return 结果
     */
    @Override
    public int insertEntAppealLandData(EntAppealLandData entAppealLandData)
    {
        entAppealLandData.setCreateTime(DateUtils.getNowDate());
        return entAppealLandDataMapper.insertEntAppealLandData(entAppealLandData);
    }

    /**
     * 修改申诉记录-自有产权信息
     * 
     * @param entAppealLandData 申诉记录-自有产权信息
     * @return 结果
     */
    @Override
    public int updateEntAppealLandData(EntAppealLandData entAppealLandData)
    {
        entAppealLandData.setUpdateTime(DateUtils.getNowDate());
        return entAppealLandDataMapper.updateEntAppealLandData(entAppealLandData);
    }

    /**
     * 批量删除申诉记录-自有产权信息
     * 
     * @param ids 需要删除的申诉记录-自有产权信息主键
     * @return 结果
     */
    @Override
    public int deleteEntAppealLandDataByIds(String ids)
    {
        return entAppealLandDataMapper.deleteEntAppealLandDataByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除申诉记录-自有产权信息信息
     * 
     * @param id 申诉记录-自有产权信息主键
     * @return 结果
     */
    @Override
    public int deleteEntAppealLandDataById(Long id)
    {
        return entAppealLandDataMapper.deleteEntAppealLandDataById(id);
    }
}
